package com.sjksy.demo.msmapper.travel_route;

import com.sjksy.demo.domain.Spots;
import com.sjksy.demo.domain.TravelRoute;
import com.sjksy.demo.dto.travel_route.SpotsDto;
import com.sjksy.demo.dto.travel_route.TravelRouteRequestDto;
import com.sjksy.demo.dto.travel_route.TravelRouteResponseDto;
import com.sjksy.demo.vo.travel_route.SpotsVo;
import com.sjksy.demo.vo.travel_route.TravelRouteRequestVo;
import com.sjksy.demo.vo.travel_route.TravelRouteResponseVo;
import org.mapstruct.Mapper;


@Mapper(componentModel = "spring")
public interface TravelRouteMsMapper {

    TravelRouteRequestDto voToTravelRouteRequestDto(TravelRouteRequestVo travelRouteRequestVo);
    TravelRouteResponseVo dtoToTravelRouteResponseVo(TravelRouteResponseDto travelRouteResponseDto);
    TravelRoute dtoToTravelRoute(TravelRouteRequestDto travelRouteRequestDto);
//  List<Spots> spots 这个东西，手动加上去更简单,包括上面，应该还有List<Integer>的取出来
    TravelRouteResponseDto entityToTravelRouteDto(TravelRoute travelRoute);


    Spots dtoToSpots(SpotsDto spotsDto);
    SpotsDto voToSpotsDto(SpotsVo spotsVo);
    SpotsDto spotsToSpotsDto(Spots spots);
    SpotsVo dtoToSpotsVo(SpotsDto spotsDto);


}
